package com.joymart.compute.model;


import lombok.Data;

import java.math.BigDecimal;
import java.util.Optional;

/**
 * 积分聚合
 */
@Data
public class PvAggregation {
    private int orderCount;
    private BigDecimal pvSum;
    public BigDecimal getPvSum() {
        return Optional.ofNullable(pvSum).orElse(BigDecimal.ZERO);
    }
}
